package com.lxy.auth.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
@TableName(value = "auth_account")
public class UserDto {

    @ApiModelProperty("用户id")
    int userId;

    @ApiModelProperty("账号")
    String username;

    @ApiModelProperty("密码")
    String password;

    @ApiModelProperty("用户类型:1 管理员\n" +
            "2 商家\n" +
            "3 平台用户")
    int sysType;


    @ApiModelProperty(hidden = true)
    int status;

    public UserDto(String username, String password, int sysType) {
        this.username = username;
        this.password = password;
        this.sysType = sysType;
    }

    public UserDto() {

    }
}
